package cn.kaguyaever.entity;

import java.io.Serializable;

public class Candidate implements Serializable {

    private Integer candidateId;
    private String name;
    private Integer count;
    private String voteId;

    public Candidate() {
    }

    public Candidate(Integer candidateId, String name, Integer count, String voteId) {
        this.candidateId = candidateId;
        this.name = name;
        this.count = count;
        this.voteId = voteId;
    }

    public Integer getCandidateId() {
        return candidateId;
    }

    public void setCandidateId(Integer candidateId) {
        this.candidateId = candidateId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getVoteId() {
        return voteId;
    }

    public void setVoteId(String voteId) {
        this.voteId = voteId;
    }

    @Override
    public String toString() {
        return "Candidate{" +
                "candidateId=" + candidateId +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", voteId='" + voteId + '\'' +
                '}';
    }
}
